package cn.xsly.user.mapper;

import cn.xsly.system.domain.Menu;
import cn.xsly.user.domain.Logininfo;
import cn.xsly.basic.mapper.BaseMapper;
import cn.xsly.user.dto.LoginDto;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-07-12
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    /*void settlement(Shop shop);*/
    Logininfo loadByAccount(LoginDto loginDto);

    List<String> loadPermissionsByLogininfoId(Long id);

    List<Menu> loadMenusByLogininfoId(Long id);
}
